package com.wql.study.designpattern.singleton;

public class Singleton2 {
	private static Singleton2 Singleton2;

	private Singleton2() {
	}

	public static synchronized Singleton2 getInstance() {
		if (Singleton2 == null) {
			Singleton2 = new Singleton2();
		}
		return Singleton2;
	}
}
